Resursbank\EcomTest\Unit\Module\Payment\Models\CreatePayment\Order\OrderLineTest S

Total Complexity 20
Dependencies 9
Dependents 0
Total lines 298
Lines of code 114
Logical lines of code 42
Comment lines 137
Methods 18
Properties 1

Methods 18

Method Rating Maintainability Complexity Lines of code
convert()
S
62 2 12
getRandomString()
S
62 2 11
setUp()
S
54 1 23
testTotalVatAmountThrowsWhenItHasTooManyDecimals()
S
75 1 4
testTotalAmountIncludingVatThrowsWhenTooBig()
S
75 1 4
testTotalAmountIncludingVatThrowsWhenItHasTooManyDecimals()
S
75 1 4
testUnitAmountIncludingVatThrowsWhenTooBig()
S
75 1 4
testUnitAmountIncludingVatThrowsWhenItHasTooManyDecimals()
S
75 1 4
testQuantityThrowsWhenTooBig()
S
75 1 4
testQuantityThrowsWhenNegative()
S
74 1 4
testQuantityThrowsWhenItHasTooManyDecimals()
S
75 1 4
testVatRateThrowsWhenTooBig()
S
75 1 4
testVatRateThrowsWhenItHasTooManyDecimals()
S
75 1 4
testVatRateThrowsWhenNegative()
S
74 1 4
testValidateQuantityUnitThrowsWhenTooLong()
S
69 1 7
testValidateReferenceThrowsWhenTooLong()
S
69 1 7
testValidateDescriptionThrowsWhenTooLong()
S
70 1 6
testTotalVatAmountThrowsWhenTooBig()
S
75 1 4